package com.momo.mapper.mapper.sysSetting;

import com.momo.mapper.dataobject.AclModuleDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by MOMO on 2019/3/21.
 */
public interface AclModuleMapper {
    int insertSelective(AclModuleDO entity);
    AclModuleDO selectByUUID(String sys_acl_module_uuid);
    int updateByPrimaryKeySelective(AclModuleDO entity);
    int checkExists(@Param("id")Long id,@Param("sysAclModuleParentId")Long sysAclModuleParentId,@Param("sysAclModuleName")String sysAclModuleName);
    AclModuleDO selectByPrimaryKey(Long id);
    /**
     * 查询子孙level
     * @param aclModuleLevel
     * @return
     */
    public List<AclModuleDO> getChildAclModuleListByLevel(@Param("aclModuleLevel") String aclModuleLevel);

    /**
     * 批量更新 level
     * @param aclModuleDOS
     * @return
     */
    public int batchUpdateLevel(@Param("sysAclModuleList") List<AclModuleDO> aclModuleDOS);
}
